#include"Heap.h"

void test01()
{
	int arr[] = { 2, 5, 7, 4, 32 ,4, 546, 43, 34, 34 };
	HP p;
	HPInit(&p);
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		HPPush(&p, arr[i]);
	}
	while (!HPEmpty(&p))
	{
		printf("%d ", HPTop(&p));
		HPPop(&p);
	}


	HPDestroy(&p);
}
int main()
{
	test01();
	return 0;
}